  /**
   * Generate time : 2012-06-13 2:33:49
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTDataInterface 
 * table comment : 数据接口 
 */
public class ZMCTDataInterface extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdName = " ";		/* 名称*/
	private String fdAbbreviation = " ";		/* 简称*/
	private String fdStatus = " ";		/* 状态*/
	private String fdDriver = " ";		/* 驱动*/
	private String fdUrl = " ";		/* URL*/
	private String fdPackageClass = " ";		/* 具体操作类*/
	private String fdInterfaceType = " ";		/* 接口类型*/
	private String fdUserName = " ";		/* 用户名*/
	private String fdPassword = " ";		/* 密码*/
	private String fdRemarks = " ";		/* 备注*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAbbreviation");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("简称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDriver");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("驱动");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUrl");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("URL");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPackageClass");
	eiColumn.setFieldLength(250);	
	eiColumn.setDescName("具体操作类");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdInterfaceType");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName("接口类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUserName");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("用户名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPassword");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("密码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCTDataInterface() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdName - 名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdAbbreviation - 简称
	 * @return the fdAbbreviation
	 */
	public String getFdAbbreviation() {
		return this.fdAbbreviation;
	}
	
	/**
	 * set the fdAbbreviation - 简称
	 */
	public void setFdAbbreviation(String fdAbbreviation) {
		this.fdAbbreviation = fdAbbreviation;
	}
	
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdDriver - 驱动
	 * @return the fdDriver
	 */
	public String FdDriver() {
		return this.fdDriver;
	}
	
	/**
	 * set the fdDriver - 驱动
	 */
	public void setFdDriver(String fdDriver) {
		this.fdDriver = fdDriver;
	}
	
	/**
	 * get the fdUrl - URL
	 * @return the fdUrl
	 */
	public String getFdUrl() {
		return this.fdUrl;
	}
	
	/**
	 * set the fdUrl - URL
	 */
	public void setFdUrl(String fdUrl) {
		this.fdUrl = fdUrl;
	}
	
	/**
	 * get the fdPackageClass - 具体操作类
	 * @return the fdPackageClass
	 */
	public String getFdPackageClass() {
		return this.fdPackageClass;
	}
	
	/**
	 * set the fdPackageClass - 具体操作类
	 */
	public void setFdPackageClass(String fdPackageClass) {
		this.fdPackageClass = fdPackageClass;
	}
	
	/**
	 * get the fdInterfaceType - 接口类型
	 * @return the fdInterfaceType
	 */
	public String getFdInterfaceType() {
		return this.fdInterfaceType;
	}
	
	/**
	 * set the fdInterfaceType - 接口类型
	 */
	public void setFdInterfaceType(String fdInterfaceType) {
		this.fdInterfaceType = fdInterfaceType;
	}
	
	/**
	 * get the fdUserName - 用户名
	 * @return the fdUserName
	 */
	public String getFdUserName() {
		return this.fdUserName;
	}
	
	/**
	 * set the fdUserName - 用户名
	 */
	public void setFdUserName(String fdUserName) {
		this.fdUserName = fdUserName;
	}
	
	/**
	 * get the fdPassword - 密码
	 * @return the fdPassword
	 */
	public String getFdPassword() {
		return this.fdPassword;
	}
	
	/**
	 * set the fdPassword - 密码
	 */
	public void setFdPassword(String fdPassword) {
		this.fdPassword = fdPassword;
	}
	
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdAbbreviation(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAbbreviation")), fdAbbreviation));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdDriver(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDriver")), fdDriver));
		setFdUrl(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUrl")), fdUrl));
		setFdPackageClass(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPackageClass")), fdPackageClass));
		setFdInterfaceType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInterfaceType")), fdInterfaceType));
		setFdUserName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUserName")), fdUserName));
		setFdPassword(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPassword")), fdPassword));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdAbbreviation",StringUtils.toString(fdAbbreviation, eiMetadata.getMeta("fdAbbreviation")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdDriver",StringUtils.toString(fdDriver, eiMetadata.getMeta("fdDriver")));	
			map.put("fdUrl",StringUtils.toString(fdUrl, eiMetadata.getMeta("fdUrl")));	
			map.put("fdPackageClass",StringUtils.toString(fdPackageClass, eiMetadata.getMeta("fdPackageClass")));	
			map.put("fdInterfaceType",StringUtils.toString(fdInterfaceType, eiMetadata.getMeta("fdInterfaceType")));	
			map.put("fdUserName",StringUtils.toString(fdUserName, eiMetadata.getMeta("fdUserName")));	
			map.put("fdPassword",StringUtils.toString(fdPassword, eiMetadata.getMeta("fdPassword")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			
		return map;
	
	}
}